<%= render :partial => 'left_bar', :locals => { :on => 1 } %>
<div id="main">
	<div class="box">
			<div class="box" id="period">
				<table class="border table">
				  <tr>
				    <th>女装店铺</th>
				  </tr>
				  <%= form_tag({:action => 'create'}) -%>
				  <tr>
				    <td>
				    <% shops = RecommendItem.period(1).filter(5)%>       
				  	<% shops.each do |shop|%>  
							<input style="width:100px" type="text" name="period[]" value="<%= shop.related_id %>" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<% end %>
						<% if shops.length < 14 %>
						  <% (14 - shops.length).times { |i| %>
						<input style="width:100px" type="text" name="period[]" value="" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						  <% } %>
						<% end %>
				    <input class="submit btt90 bttb" name="" type="submit" value="确定" />

				    </td>
				  </tr>
				  <input type="hidden" name="cat1_id" value="1">      
				  <input type="hidden" name="recommend_type" value="5">
				  </form>
				  <tr><td>&nbsp;</td></tr>
				</table>
			</div>
				
			<div class="box" id="period">
				<table class="border table">
					<tr>
					  <th>女裤店铺</th>
					</tr>
					<%= form_tag({:action => 'create'}) -%>
					<tr>
					  <td>
					  <% shops = RecommendItem.period(2).filter(5)%>       
						<% shops.each do |shop|%>  
							<input style="width:100px" type="text" name="period[]" value="<%= shop.related_id %>" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<% end %>
						<% if shops.length < 14 %>
							<% (14 - shops.length).times { |i| %>
						<input style="width:100px" type="text" name="period[]" value="" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<% } %>
						<% end %>
					  <input class="submit btt90 bttb" name="" type="submit" value="确定" />

					  </td>
					</tr>
					<input type="hidden" name="cat1_id" value="2">      
					<input type="hidden" name="recommend_type" value="5">
					</form>
					<tr><td>&nbsp;</td></tr>
				</table>
			</div>
			
			<div class="box" id="period">
				<table class="border table">
					<tr>
					  <th>韩版店铺</th>
					</tr>
					<%= form_tag({:action => 'create'}) -%>
					<tr>
					  <td>
					  <% shops = RecommendItem.period(3).filter(5)%>       
						<% shops.each do |shop|%>  
							<input style="width:100px" type="text" name="period[]" value="<%= shop.related_id %>" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<% end %>
						<% if shops.length < 14 %>
							<% (14 - shops.length).times { |i| %>
						<input style="width:100px" type="text" name="period[]" value="" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<% } %>
						<% end %>
					  <input class="submit btt90 bttb" name="" type="submit" value="确定" />

					  </td>
					</tr>
					<input type="hidden" name="cat1_id" value="3">      
					<input type="hidden" name="recommend_type" value="5">
					</form>
					<tr><td>&nbsp;</td></tr>
				</table>
			</div>
			
			<div class="box" id="period">
				<table class="border table">
					<tr>
					  <th>潮流店铺</th>
					</tr>
					<%= form_tag({:action => 'create'}) -%>
					<tr>
					  <td>
					  <% shops = RecommendItem.period(4).filter(5)%>       
						<% shops.each do |shop|%>  
							<input style="width:100px" type="text" name="period[]" value="<%= shop.related_id %>" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<% end %>
						<% if shops.length < 14 %>
							<% (14 - shops.length).times { |i| %>
						<input style="width:100px" type="text" name="period[]" value="" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<% } %>
						<% end %>
					  <input class="submit btt90 bttb" name="" type="submit" value="确定" />

					  </td>
					</tr>
					<input type="hidden" name="cat1_id" value="4">      
					<input type="hidden" name="recommend_type" value="5">
					</form>
					<tr><td>&nbsp;</td></tr>
				</table>
			</div>
			
			<div class="box" id="period">
				<table class="border table">
					<tr>
					  <th>黄钻店铺</th>
					</tr>
					<%= form_tag({:action => 'create'}) -%>
					<tr>
					  <td>
					  <% shops = RecommendItem.period(5).filter(5)%>       
						<% shops.each do |shop|%>  
							<input style="width:100px" type="text" name="period[]" value="<%= shop.related_id %>" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<% end %>
						<% if shops.length < 14 %>
							<% (14 - shops.length).times { |i| %>
						<input style="width:100px" type="text" name="period[]" value="" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<% } %>
						<% end %>
					  <input class="submit btt90 bttb" name="" type="submit" value="确定" />

					  </td>
					</tr>
					<input type="hidden" name="cat1_id" value="5">      
					<input type="hidden" name="recommend_type" value="5">
					</form>
					<tr><td>&nbsp;</td></tr>
				</table>
			</div>
			
	</div>
</div>
